package com.pf.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2021/9/6
 */
@Component
@ConfigurationProperties(prefix="rest.proxy")
@Data
public class RestTemplateProxy {

    /**
     * 代理是否打开
     */
    private Boolean enabled;
    /**
     * 代理IP
     */
    private String host;
    /**
     * 代理端口
     */
    private Integer port;
}
